import request from '@/utils/request'

// 资产卡片
export function queryAssetsList(data) {
  return request({
    url: '/tFinAssets/queryAssetsList',
    method: 'post',
    data
  })
}
// 新增资产
export function createAssetsBill(data) {
  return request({
    url: '/tFinAssets/createAssetsBill',
    method: 'post',
    data
  })
}
// 资产详情
export function queryAssetsDetails(params) {
  return request({
    url: '/tFinAssets/queryAssetsDetails',
    method: 'get',
    params
  })
}
// 初始化
export function finishInit(data) {
  return request({
    url: '/tFinAssets/finishInit',
    method: 'post',
    data
  })
}
// 修改资产
export function updateAssets(data) {
  return request({
    url: '/tFinAssets/updateAssets',
    method: 'post',
    data
  })
}
// 资产反提交
export function nosubmitAssets(data) {
  return request({
    url: '/tFinAssets/nosubmitAssets',
    method: 'post',
    data
  })
}
// 资产提交
export function submitAssets(data) {
  return request({
    url: '/tFinAssets/submitAssets',
    method: 'post',
    data
  })
}
// 资产反审核
export function noreviewAssets(data) {
  return request({
    url: '/tFinAssets/noreviewAssets',
    method: 'post',
    data
  })
}
// 资产审核
export function reviewAssets(data) {
  return request({
    url: '/tFinAssets/reviewAssets',
    method: 'post',
    data
  })
}
// 资产删除
export function deleteAssetss(data) {
  return request({
    url: '/tFinAssets/deleteAssetss',
    method: 'post',
    data
  })
}
// 资产编码 新增一行 前端默认 +1
export function queryAssetsNum(data) {
  return request({
    url: '/tFinAssets/queryAssetsNum',
    method: 'post',
    data
  })
}
// 资产处置单
export function queryAssetsManageList(data) {
  return request({
    url: '/tFinAssetsManage/queryAssetsManageList',
    method: 'post',
    data
  })
}
// 资产处置单详情
export function queryAssetsManageDetails(params) {
  return request({
    url: '/tFinAssetsManage/queryAssetsManageDetails',
    method: 'get',
    params
  })
}
// 资产处置单新增
export function createAssetsManageBill(data) {
  return request({
    url: '/tFinAssetsManage/createAssetsManageBill ',
    method: 'post',
    data
  })
}
// 资产处置单修改
export function updateAssetsManage(data) {
  return request({
    url: '/tFinAssetsManage/updateAssetsManage',
    method: 'post',
    data
  })
}
// 资产处置单反提交
export function nosubmitAssetsManage(data) {
  return request({
    url: '/tFinAssetsManage/nosubmitAssetsManage',
    method: 'post',
    data
  })
}
// 资产处置单提交
export function submitAssetsManage(data) {
  return request({
    url: '/tFinAssetsManage/submitAssetsManage',
    method: 'post',
    data
  })
}
// 资产处置单反审核
export function noreviewAssetsManage(data) {
  return request({
    url: '/tFinAssetsManage/noreviewAssetsManage',
    method: 'post',
    data
  })
}
// 资产处置单审核
export function reviewAssetsManage(data) {
  return request({
    url: '/tFinAssetsManage/reviewAssetsManage',
    method: 'post',
    data
  })
}
// 资产处置单删除
export function deleteAssetsManages(data) {
  return request({
    url: '/tFinAssetsManage/deleteAssetsManages',
    method: 'post',
    data
  })
}
// 资产变更列表
export function queryAssetsChangeList(data) {
  return request({
    url: '/tFinAssetsChange/queryAssetsChangeList',
    method: 'post',
    data
  })
}
// 资产变更详情
export function queryAssetsChangeDetails(params) {
  return request({
    url: '/tFinAssetsChange/queryAssetsChangeDetails',
    method: 'get',
    params
  })
}
// 资产变更新增
export function createAssetsChangeBill(data) {
  return request({
    url: '/tFinAssetsChange/createAssetsChangeBill',
    method: 'post',
    data
  })
}
// 资产变更更新
export function updateAssetsChange(data) {
  return request({
    url: '/tFinAssetsChange/updateAssetsChange',
    method: 'post',
    data
  })
}
// 资产变更删除
export function deleteAssetssChange(data) {
  return request({
    url: '/tFinAssetsChange/deleteAssetssChange',
    method: 'post',
    data
  })
}
// 资产变更反提交
export function nosubmitAssetsChange(data) {
  return request({
    url: '/tFinAssetsChange/nosubmitAssetsChange',
    method: 'post',
    data
  })
}
// 资产变更提交
export function submitAssetsChange(data) {
  return request({
    url: '/tFinAssetsChange/submitAssetsChange',
    method: 'post',
    data
  })
}
// 资产变更反审核
export function noreviewAssetsChange(data) {
  return request({
    url: '/tFinAssetsChange/noreviewAssetsChange',
    method: 'post',
    data
  })
}
// 资产变更审核
export function reviewAssetsChange(data) {
  return request({
    url: '/tFinAssetsChange/reviewAssetsChange',
    method: 'post',
    data
  })
}
// 折旧调整单列表
export function queryAccruedList(data) {
  return request({
    url: '/tFinAccrued/queryAccruedList',
    method: 'post',
    data
  })
}
// 折旧调整单详情
export function queryAccruedDetails(params) {
  return request({
    url: '/tFinAccrued/queryAccruedDetails',
    method: 'get',
    params
  })
}
// 折旧调整单 下次计提期 当前计提期
export function queryAccruedDepDate(data) {
  return request({
    url: '/tAccruedDepClosetask//queryAccruedDepDate',
    method: 'post',
    data
  })
}
// 计提
export function tAccruedDepClosetask(data) {
  return request({
    url: '/tAccruedDepClosetask/createAccruedDepClosetask',
    method: 'post',
    data
  })
}
// 反计提
export function createAntiAccruedDepClosetask(data) {
  return request({
    url: '/tAccruedDepClosetask/createAntiAccruedDepClosetask',
    method: 'post',
    data
  })
}
// 计提生成凭证
export function createVoucherByAccrual(data) {
  return request({
    url: '/tFinVoucher/createVoucherByAccrual',
    method: 'post',
    data
  })
}
// 提交
export function submitAccrued(data) {
  return request({
    url: '/tFinAccrued/submitAccrued',
    method: 'post',
    data
  })
}
// 反提交
export function nosubmitAccrued(data) {
  return request({
    url: '/tFinAccrued/nosubmitAccrued',
    method: 'post',
    data
  })
}
// 审核
export function reviewAccrued(data) {
  return request({
    url: '/tFinAccrued/reviewAccrued',
    method: 'post',
    data
  })
}
// 反审核
export function noreviewAccrued(data) {
  return request({
    url: '/tFinAccrued/noreviewAccrued',
    method: 'post',
    data
  })
}
